/*
 * UTILES.h
 *
 *  Created on: Jul 6, 2021
 *      Author: 18314
 */

#ifndef CODE_UTILES_H_
#define CODE_UTILES_H_
#include "headfile.h"
#include <stdlib.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#define INF 0x3f3f3f3f
#define MAXN 105
#define MAX_POINTS 5
#define MAX_COE 5
typedef struct
{
    int x, y;
} Point;
extern Point points[MAX_POINTS];
int quick_pow(int x, int t, int m);
int gcd(int a, int b);
int lcm(int a, int b);
int leastSquares(double* a, double* b, double* c, int n, int ploy);
int8 m_max(int8 a, int8 b);
uint8 m_min(uint8 a, uint8 b);
uint8 within(uint8 from, uint8 pos, uint8 to);
float m_fabs(float a);
void display_processed_img();
#endif /* CODE_UTILES_H_ */
